package com.cxs.drawpointdemo;

import com.cxs.drawpointdemo.slice.MainAbilitySlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;

public class MainAbility extends Ability {

    private String[] permissions = new String[] {
            "ohos.permission.DISTRIBUTED_DATASYNC"
    };

    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(MainAbilitySlice.class.getName());

        requestPermissionsFromUser(permissions, 0);
    }
}
